<template>
  <a-modal
    :title="title"
    :width="1200"
    style="top:10px"
    :visible="visible"
    :confirmLoading="confirmLoading"
    @cancel="handleCancel"
    cancelText="关闭"
    :destroyOnClose="true"
  >
    <a-spin :spinning="confirmLoading">
        <aggregation-chart-card :username="username" :roleStr="roleStr"></aggregation-chart-card>
    </a-spin>
  </a-modal>
</template>

<script>
  import Vue from 'vue'
  import { httpAction } from '@/api/manage'
  import pick from 'lodash.pick'
  import moment from "moment"
  import {randomString} from '@/utils/util'
  import {Dict}   from '@/api/Dict'
  import AggregationChartCard from '@/views/orderForm/AggregationChartCard.vue'


  export default {
    name: "VisitorOrderFormModal",
    mixins:[Dict],
    components:{
      AggregationChartCard
    },
    data () {
      return {
        username:'',
        roleStr:'',
        title:"操作",
        visible: false,
        model: {},
        previewImage:'',
        confirmLoading: false,
        form: this.$form.createForm(this),
        validatorRules:{
        },
        url: {
          imgerver: window._CONFIG['domianURL'] + "/sys/common/view",
        },
      }
    },
    created () {
    },
    methods: {
      close () {
        this.$emit('ok');
        this.visible = false;
      },
      handleOk () {
      },
      handleCancel () {
        this.close()
      },


    }
  }
</script>

<style scoped>

</style>